home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / 23 web forms and controls / databinding / simplecontrolsform.aspx < prev    next >
Encoding:
ASP.NET Web Form  |  2002-03-17  |  1.6 KB  |  37 lines

  1. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="SimpleControlsForm.aspx.vb" Inherits="DataBinding.WebForm1" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <HTML>
  4.     <HEAD>
  5.         <title>WebForm1</title>
  6.         <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
  7.         <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
  8.         <meta content="JavaScript" name="vs_defaultClientScript">
  9.         <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10.     </HEAD>
  11.     <body>
  12.         <form id="Form1" method="post" runat="server">
  13.             <H1>Two-way Data Binding Demo</H1>
  14.             <P>This page shows how you can simulate two-way data binding. Select a record from 
  15.                 the topmost DropDownList control, edit the values of the fields, and click 
  16.                 the Save Values button to update the database. The updated is performed by 
  17.                 creating a custom Command object.</P>
  18.             <P> </P>
  19.             <P><STRONG>Select a Title: 
  20.                     <asp:dropdownlist id="ddlTitles" runat="server" Width="356px" AutoPostBack="True"></asp:dropdownlist></P>
  21.             <HR width="100%" noShade SIZE="2">
  22.             <P>Title:
  23.                 <asp:textbox id="txtTitle" runat="server" Width="243px"></asp:textbox></P>
  24.             <P>Price:
  25.                 <asp:textbox id="txtPrice" runat="server" Width="93px"></asp:textbox></P>
  26.             <P>Type:
  27.                 <asp:textbox id="txtType" runat="server"></asp:textbox></P>
  28.             <P>Publisher:
  29.                 <asp:dropdownlist id="ddlPublishers" runat="server" Width="226px"></asp:dropdownlist></P>
  30.             </STRONG>
  31.             <P><asp:button id="btnSave" runat="server" Text="Save Values"></asp:button></P>
  32.             <P>
  33.         </form>
  34.         </P>
  35.     </body>
  36. </HTML>
  37.